package cn.ctvonline.android.kaopu.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import cn.ctvonline.android.kaopu.R;
import cn.ctvonline.android.kaopu.activity.demo.ActivitySwiperDemo;
import cn.ctvonline.android.kaopu.base.util.ToastUtil;

/**
 * Created by dujian on 15/12/23.
 */
public class OrdinaryActivity extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.ordinary_activity);
        findViewById(R.id.click_for_swipe_tv).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(getApplicationContext(), ActivitySwiperDemo.class);
                startActivity(intent);
                overridePendingTransition(R.anim.push_in_right, R.anim.push_out_right);
            }
        });
        findViewById(R.id.ordinary_root_ll).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ToastUtil.show(getApplicationContext(), "OrdinaryActivity clicked");
            }
        });
    }
}
